package edu.hz.dao;

import edu.hz.model.entity.NewsEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NewsMapper {

    @Select("select * from news")
    List<NewsEntity> getAllNews();

    @Select("select * from news where id = #{id}")
    NewsEntity selectById(@Param("id") Integer id);

}
